package com.cyzy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cyzy.dao.Attend;
import com.cyzy.mapper.AttendMapper;
import com.cyzy.pojo.CourseCla;
import com.cyzy.pojo.CourseParent;
import com.cyzy.pojo.CourseStu;
import com.cyzy.service.AttendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: zengxiangwei
 * @CreateTime: 2025-06-20 下午2:46
 */
@Service
public class AttendServiceImpl implements AttendService {
    @Autowired
    AttendMapper attendMapper;

    @Override
    public String getParentUrl(String parentId, String campusId) {
        String parentUrl = attendMapper.getParentUrl(parentId,campusId);
        return parentUrl;
    }

    @Override
    public List<CourseStu> getCourseStu(String parentId, String campusId) {
        List<CourseStu>  list = attendMapper.getCourseStu(parentId,campusId);
        return list;
    }

    @Override
    public List<CourseCla> getCourseCla(String stuId) {
        List<CourseCla>  list = attendMapper.CourseCla(stuId);
        return list;
    }

    @Override
    public List<Attend> getAttend(String stuId, String claId, String month) {
        List<Attend>  list = attendMapper.getAttend(stuId, claId, month);
        return list;
    }

    @Override
    public List<Attend> getAttendByDay(String stuId, String claId, String day) {
        List<Attend>  list = attendMapper.getAttendByDay(stuId, claId, day);
        return list;
    }

}
